package com.ny.service;

import com.ny.entity.Product;

import java.sql.SQLException;
import java.util.List;

public interface ProductService {
   List<Product> findAllProduct() throws SQLException;
   int addProduct(Product product) throws SQLException;
   public boolean reduceStock(int productId, int quantity) throws SQLException;
   Product deleteProduct(String name)throws SQLException;
   Product updateProduct(Product product)throws SQLException;
}
